package com.joinlabs.service;

import java.util.List;

import com.joinlabs.entity.Admin;
import com.joinlabs.entity.Log;
import com.joinlabs.entity.LogDataByLayUITableBean;
import com.joinlabs.entity.PageBean;
import com.joinlabs.entity.User;
import com.joinlabs.entity.UserDataByLayUITableBean;
import com.joinlabs.entity.Weibo;
import com.joinlabs.entity.WeiboDataByLayUITableBean;
import com.joinlabs.entity.WeiboUser;
import com.joinlabs.exception.CustomException;

public interface IAdminService {

	//登录验证，拦截
	Admin checkLogin(Admin admin) throws CustomException;

	//后台显示所有用户,分页
	List<User> findAllUser();

	UserDataByLayUITableBean findAllUserByTableData();

	UserDataByLayUITableBean findUsersByTableDate(PageBean pageBean);
	
	//后台显示所有拉黑用户,分页
	UserDataByLayUITableBean findBlackUsersByTableDate(PageBean pageBean);

	//后台显示所有微博,分页
	List<WeiboUser> findAllWeibo();

	WeiboDataByLayUITableBean findAllWeiboByTableData();

	WeiboDataByLayUITableBean findWeibosByTableDate(PageBean pageBean);

	//后台显示所有文章,分页
	List<Log> findAllLog();

	LogDataByLayUITableBean findAllLogByTableData();

	LogDataByLayUITableBean findLogsByTableDate(PageBean pageBean);
	
	//删除文章
	int delLogByPrimaryKey(long logId);
	
	Log showLogByPrimaryKey(long logId);
	
	//拉黑用户
	int updateUserByUserId(long userId);
	
	User showUserByPrimaryKey(long userId);
	
	//取消拉黑用户
	int updataBlackUserByUserId(long userId);
	
	//删除动态
	int delWeiboByPrimaryKey(long weiboId);
	
	WeiboUser showWeiboByPrimaryKey(long weiboId);
	

}
